import { createApp } from 'vue'
import App from './App.vue'
import { router } from './router/router.ts'

import 'reset-css'
import './assets/scss/styles.scss'
import { createPinia } from 'pinia'
import AiCommandComponent from '@/views/commands/AiCommandComponent.vue'
import AllowCopyCommandComponent from '@/views/commands/AllowCopyCommandComponent.vue'
import NormalCommandComponent from '@/views/commands/NormalCommandComponent.vue'
import QrCodeCommandComponent from '@/views/commands/QrCodeCommandComponent.vue'
import TimestampCommandComponent from '@/views/commands/TimestampCommandComponent.vue'
import JsonCommandComponent from '@/views/commands/JsonCommandComponent.vue'
import LinkCommandComponent from '@/views/commands/LinkCommandComponent.vue' // 创建APP

// 创建APP
const app = createApp(App).use(createPinia()).use(router)

// 注册全局组件
app.component('AiCommandComponent', AiCommandComponent)
app.component('AllowCopyCommandComponent', AllowCopyCommandComponent)
app.component('NormalCommandComponent', NormalCommandComponent)
app.component('QrCodeCommandComponent', QrCodeCommandComponent)
app.component('TimestampCommandComponent', TimestampCommandComponent)
app.component('JsonCommandComponent', JsonCommandComponent)
app.component('LinkCommandComponent', LinkCommandComponent)

// 挂载APP
app.mount('#app')
